<!DOCTYPE html>
<html lang="en">
    <?php
    	if(isset($_SESSION["userName"]) and isset($_SESSION["userType"])) {
	    	header("location: index.php");
	    }
    ?>
	<head>
        <title>调查员项目</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="css/bootstrap.min.css" />
		<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="css/matrix-login.css" />
        <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />

    </head>
    <body>
    	
        <div id="loginbox">            
            <form id="loginform" class="form-vertical" method="post" action="dologin.php">
				 <div class="control-group normal_text"> <img src="img/logo.png"/></div>
				 <div class="text-center widget-content">
				 <?php

		    		if(isset($_GET["error"])) { 
			    		echo  '<div class="alert alert-error">';
			            echo  '<strong>登录错误!</strong>'. $_GET["error"] .'</div>';
		    		} 
		    	?>
		    	</div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"></i></span><input name="username" type="text" placeholder="用户名" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input name="passwd" type="password" placeholder="密码" />
                        </div>
                    </div>
                </div>
                <div class="form-actions text-center">
                   <input type="submit" value="登录" class="btn btn-large btn-success"/>
                </div>
            </form>
        <script src="js/jquery.min.js"></script>  
        <script src="js/matrix.login.js"></script> 
    </body>

</html>
